package com.kotlin.jetpack.android.jssdk.jsobj;


import com.kotlin.jetpack.android.jssdk.bean.ShareToBean;
import com.kotlin.jetpack.android.jssdk.listener.JSShareToListener;

/**
 * Created by Android Studio.
 * Author: zl
 * Date: 2019-05-16
 * Time: 14:22
 * H5回调native第三方分享
 */
public class JSShareToObj {
	private JSShareToListener listener;

	public JSShareToListener getListener() {
		return listener;
	}

	public void setListener(JSShareToListener listener) {
		this.listener = listener;
	}

	public void shareTo(ShareToBean shareToBean){
		if (listener != null) {
			listener.shareTo(shareToBean);
		}
	}
}
